package Synchronized;

import org.junit.jupiter.api.Test;


/**
 * @Author Mr.Wen
 * @Version 1.0
 */
public class Test1 {
    int num = 0;
    private final Object lock = new Object();

    @Test
    public void test1() {
        synchronized (lock) {
            num++;
        }
    }
}
